<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>职位</title>
</head>
<body>
<form action="/getPositions">
    <input name="positionName">
    <button type="submit">搜索职位</button>
</form>
<div th:each="item : ${positions}"  style="border: 1px solid gray; width: 300px; height: 150px; float: left">
    <div>
        <span th:text="${item.positionName}">职位名称</span>
        <span th:text="${item.salary}">薪资范围</span>
    </div>
    <div>
        <span th:text="${item.workYear}">工作经验要求</span>
        <span th:text="${item.education}">学历要求</span>
    </div>
    <div>
        <span th:text="${item.positionAdvantage}">描述</span>
    </div>
    <div>
        <span th:text="${item.companyName}">公司名称</span>
    </div>
    <div>
        <span th:text="${item.workAddress}">城市</span>
    </div>
</div>
</body>
</html>